package com.smart.community.common.config;

import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;


/**
 * \
 *
 * @author 13782
 */
@Component
@ConfigurationProperties("swagger")
@Data
public class SwaggerProperties {


    private String title;
    private String basePackage;
    private String groupName;
    private String description;
    private String version;
    private String name;
    private String url;
    private String email;

    private static final Logger log = LoggerFactory.getLogger(SwaggerProperties.class);

    @PostConstruct
    public void logProperties() {
        log.info("Swagger properties - title: {}, basePackage: {}", title, basePackage);
    }
}
